<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>一楼网</title>

        <!-- ALL STYLESHEET -->
        <link href="/TOP2/Public/index/bootstrap/css/bootstrap.min.css" rel="stylesheet">
		<link href="/TOP2/Public/index/css/font-awesome.min.css" rel="stylesheet">
		<link href="/TOP2/Public/index/css/style.css" rel="stylesheet">
		<link href="/TOP2/Public/index/css/style2.css" rel="stylesheet">
		<link href="/TOP2/Public/index/css/responsive.css" rel="stylesheet">
		<!--link href="css/blog-single.css" rel="stylesheet">
		<link href="css/responsive.css" rel="stylesheet"-->
    </head>   
	<body>
		
		<!-- header -->
		<header class="header">
			
			<!-- header top -->
			<div class="header-top">
				<div class="container">
					<div class="row">
						<div class="col-sm-3">
							<ul class="list-inline">
								<li>
									<div class="dropdown">
										<a class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><img  src="/TOP2/Public/index/images/is.png" alt="" /> English <i class="fa fa-angle-down"></i></a>
										<ul class="dropdown-menu">
											<li><a href="#">Japani</a></li>
											<li><a href="#">Hindi</a></li>
											<li><a href="#">中国</a></li>
										</ul>
									</div>
								</li>
								<li>
									<div class="dropdown">
										<a class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Currency $USD <i class="fa fa-angle-down"></i></a>
										<ul class="dropdown-menu">
											<li><a href="#">Pound</a></li>
											<li><a href="#">Diner</a></li>
											<li><a href="#">Rupee</a></li>
										</ul>
									</div>
								</li>
							</ul>
						</div>
						<div class="col-sm-4">
							<ul class="list-inline">
								<li><a href="#" ><i class="fa fa-mobile"></i> +15821203194</a></li>
								<li><a href="#" ><i class="fa fa-envelope-o"></i> maidi_wen@163.com</a></li>
							</ul>	
						</div>
						<div class="col-sm-5">
							<ul class="list-inline pull-right">
								<li><a href="<?php echo U('Cart/index');?>" ><i class="glyphicon glyphicon-shopping-cart"></i> My Cart</a></li>
								<!-- 判断session['user'] 是否为空， -->
								<?php if(empty($_SESSION['user'])): ?><li><a href="<?php echo U('Login/index');?>" ><i class="glyphicon glyphicon-user"></i> Login</a></li>
									<li><a href="#" ><i class="glyphicon glyphicon-pencil"></i> Regstered</a></li>
								<?php else: ?>						<!-- 如果不为空则输出用户名 -->
								<li><a class="register" href="<?php echo U('Cart/orderdetails');?>" >VIP <?php echo ($_SESSION['user']['name']); ?></a></li>
								<li><a href="<?php echo U('Login/Loginout');?>"><i class="glyphicon glyphicon-off"></i> 退出</a></li><?php endif; ?>

							</ul>	
						</div>	
					</div>	
				</div>
			</div>
			
			<!-- logo and adds -->
			<div class="logo-add">
				<div class="container">
					<div class="row">
						<div class="col-sm-4">
							<div class="logo"><i class="fa fa-diamond"></i>Ground floor Net</div>
						</div>
						<div class="col-sm-8">
							<h3 class="add bb-year-end-ribbon hidden-xs"><img src="/TOP2/Public/index/images/red-tablet.png" width="40px;" alt="" /> 
							<span>一楼网打造</span></span>全球品牌<button class="btn btn-default"> 点击 加入 </button></h3>
						</div>
					</div>
				</div>
			</div>
			
			<!-- header bottom -->
			<div class="header-bottom">
				<div class="row">
					<div class="col-sm-12">
						<nav class="navbar navbar-default">
							<div class="container">
								<!-- Brand and toggle get grouped for better mobile display -->
								<div class="navbar-header">
									<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#header-bottom" aria-expanded="false">
										<span class="sr-only">Toggle navigation</span>
										<span class="icon-bar"></span>
										<span class="icon-bar"></span>
										<span class="icon-bar"></span>
									</button>
								</div>

								<!-- Collect the nav links, forms, and other content for toggling -->
								<div class="collapse navbar-collapse" id="header-bottom">
									<ul class="nav navbar-nav">
										<li class="active"><a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Home</a></span>
											<ul class="dropdown-menu">
												<li><a href="<?php echo U('Index/index');?>">Home Page</a></li>
												<li><a href="<?php echo U('Cart/index');?>">Home Page 2</a></li>
											</ul>	
										</li>
										<li><a href="<?php echo U('Cart/index');?>" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Shop</a><span class="label label-danger text-center hidden-xs">New <i class="fa fa-caret-right"></i></span>
											<ul class="dropdown-menu">
												<li><a href="<?php echo U('Cart/index');?>">Products</a></li>
											
												<li><a href="<?php echo U('Cart/index');?>">New Products</a></li>
											</ul>	
										</li>
										<li><a href="<?php echo U('Cart/index');?>">CART</a></li>
										<li><a href="<?php echo U('Cart/index');?>">Blog Detail</a></li>
										<li><a href="<?php echo U('Cart/index');?>">About Us</a> <span class="label label-info text-center hidden-xs">New <i class="fa fa-caret-right"></i></span></li>
										<li><a href="<?php echo U('Cart/index');?>">Contac Us</a></li>
										<li><a href="<?php echo U('Cart/index');?>">FAQ</a></li>
									</ul>
									<form class="navbar-form navbar-right" role="search">
										<div class="form-group">
											<input type="text" class="form-control" placeholder="搜索...">
											<span class="nav-search"><a href="#"><i class="fa fa-search"></i></a></span>
										</div>	
									</form>
								</div>
							</div>
						</nav>
					</div>	
				</div>	
			</div>	
		</header>	
		
			
		<!-- desktop bar -->
		<section class="desktop-bar">
			<div class="container">
				<div class="row">
					<div class="col-sm-4">
					 <h3>已购宝贝 <i class="fa fa-bars"></i></h3>
					</div>
					<div class="col-sm-8">
						<ol class="breadcrumb hidden-xs pull-right">
							<li><a href="#">Home</a></li>
							<li class="active"><a href="#">宝贝</a></li>
						</ol>
					</div>
				</div>
			</div>
		</section>

		<section class="blog-detail">
			<div class="container">
				<div class="row">
					<div class="col-sm-3 col31">
						<div class="sidebar">
							<div class="well wedget">
							 	<strong style="color:#FF5500;">我的交易</strong>
								<div class="heading-border b-color-6"></div>
								 <ul class="category-2">
									<li><a href="">个人资料 <span class="pull-right glyphicon glyphicon-triangle-right"></span></a></li>
									<li><a href="">修改密码 <span class="pull-right glyphicon glyphicon-triangle-right"></span></a></li>
									<li><a href="">已购宝贝 <span class="pull-right glyphicon glyphicon-triangle-right"></span></a></li>
									<li><a href="">已购宝贝 <span class="pull-right glyphicon glyphicon-triangle-right"></span></a></li>
									<li><a href="">会员信息 <span class="pull-right glyphicon glyphicon-triangle-right"></span></a></li>
									<li><a href="">收货地址 <span class="pull-right glyphicon glyphicon-triangle-right"></span></a></li>
								</ul>
							</div>
							<div class="well wedget footer-top">
							 	<strong>Recent Post</strong>
								<div class="heading-border b-color-6"></div>
								<ul class="media-list recent-post">
									<li class="media">
										<!-- <div class="media-left"><img src="/TOP2/Public/index/images/featured-1.jpg" alt=""></div> -->
										<div class="media-body">
											<p class="media-heading">Lorem ipsum dolor sit amet mea aeterno</p>
											<small> March 14, 2015</small>
										</div>
									</li>
									
								</ul>
							</div>
							<div class="single-add">
								<h4>Get <span>50%</span> Discount</h4>
								<a href="#" class="btn btn-default" role="button">Learn More</a>
								<span class="img-add"><img class="img-responsive" src="/TOP2/Public/index/images/red-tablet.png" width="120px" alt="" /></span>
							</div>
							<div class="well text-widget wedget">
								<strong>Text Widget</strong>
								<div class="heading-border b-color-6"></div>
								<p>Lorem ipsum dolor sit amet, no mea aeterno indoctum percipitur. Homero quaerendum ius ei. In pro decore tamquam 									appetere, ea mentitum mediocrem efficiantur quo.</p>
							</div>
						</div>
					</div>
					<div class="col-sm-9 blog-detail-wrap wrap_sm9">
						<div class="row post-bottom">
							<div class="col-sm-12">
								<div class="panel-body">
										<div class="panelbody panelbody_top">
											<ul>
												<li class="bodyli11"><input type="checkbox">全选</li>
												<li class="bodyli12">宝贝</li>
												<li class="bodyli13">单价(元)</li>
												<li class="bodyli14">数量</li>
												<li class="bodyli15">金额(元)</li>
												<li class="bodyli16">交易状态</li>
												<li class="bodyli17">操作</li>
											</ul>
										</div>
										<!-- 遍历订单号 -->
										<?php if(is_array($res)): foreach($res as $key=>$vres): ?><div class="panel_cart order1_cart">
											<div class="panel_cart_table2 order1">
												<div class="panelbody bodys">
													<ul>
														<li class="body_li11"><input type="checkbox" value="" class="chexin"> <b><?php echo (date('Y-m-d',$vres["addtime"])); ?></b>&nbsp;&nbsp;订单编号:&nbsp;<?php echo ($vres['ordernumber']); ?></li>
													</ul>
												</div>
												<?php if(is_array($vres['son'])): foreach($vres['son'] as $key=>$value): ?><div class="_body_shop">
														<ul>
															<li class="panelsa1">
														<input type="checkbox" name="chebox1" class="chebox1">
														<img src="/TOP2/Public/index/images/1.jpg" class="chebox1_img">
														</li>
														<li class="panelsa2"><?php echo ($value['gname']); echo ($value['gname']); echo ($value['gname']); ?></li>
														
														<li class="panelsa3"><?php echo ($value['gprice']); ?></li>
														<li class="panelsa4"><?php echo ($value['orinfonum']); ?></li>
														<li class="panelsa5"><?php echo ($value['orinfonum']*$value['gprice']); ?>.00</li>
														<li class="panelsa6">
															<a href="">订单详情</a><br>
															<?php switch($value['ors']): case "0": ?>未发货<?php break;?><br>   
											                  	<?php case "1": ?><a href="<?php echo U('show',array('id'=>$value['orid']));?>">签收</a><?php break;?>
											                  	<?php case "2": ?>以签收<?php break; endswitch;?>														
										                </li>
														<li class="panelsa6">
															<?php switch($value['orf']): case "0": ?><a href="<?php echo U('del',array('id'=>$value['orid']));?>">取消订单</a><?php break;?><br>   
											                  	<?php case "1": ?><!-- 签收了货物才能删除 -->
																	<?php if($value['ors'] == 2): ?><a href="<?php echo U('del',array('id'=>$value['orid']));?>"><span class="glyphicon glyphicon-trash"></span></a><?php endif; break;?>  <br><?php endswitch;?>
										                  	<br>
															<?php switch($value['orf']): case "0": ?><a href="<?php echo U('fu',array('id'=>$value['orid']));?>">付款</a><?php break;?><br>   
											                  	<?php case "1": ?><a href="<?php echo U('Details/index',array('id'=>$value['gid'],'orl_id'=>$vres['id']));?>#evaluation"><button type="button" class="btn btn-default btn-xs">评价</button></a><?php break; endswitch;?>
															
														</li>
														</ul>
													</div><?php endforeach; endif; ?>
											</div><?php endforeach; endif; ?>										
											<!-- 订单编号遍历结束 -->
											
										</div>
								<div class="blog-content">
									<h2>Lorem ipsum dolor sit amet mea aeterno</h2>
									<ul class="list-inline post-info">
										<li>Septembar 12, 2016</li>
										<li><a href="#"><i class="fa fa-user"></i> Jhon Ray</a></li>
										<li><a href="#"><i class="fa fa-bookmark"></i> Category Name</a></li>
										<li><a href="#"><i class="fa fa-comment"></i> 5 Comments</a></li>
										<li><a href="#"><i class="fa fa-plus"></i> Read More</a></li>
									</ul>

									<p>Lorem ipsum dolor sit amet, no mea aeterno indoctum percipitur. Homero quaerendum ius ei. In pro decore tamquam 									appetere, ea mentitum mediocrem efficiantur quo. Quo no assentior conclusionemque. Qui cu ceteros accusata. Partem 									utamur explicari eos at. Ad brute veritus theophrastus vis, an quo mutat voluptaria mnesarchum.</p>
									<p>Lorem ipsum dolor sit amet, no mea aeterno indoctum percipitur. Homero quaerendum ius ei. In pro decore tamquam 									appetere, ea mentitum mediocrem efficiantur quo. Quo no assentior conclusionemque. Qui cu ceteros accusata. Partem 									utamur explicari eos at. Ad brute veritus theophrastus vis, an quo mutat voluptaria.</p>
								</div>
							</div>
						</div>
						

						
						<div class="row">
							<div class="col-sm-12">
								<nav>
								  	<ul class="pager">
										<li class="previous"><a href="#"><span aria-hidden="true">&larr;</span> Prev</a></li>
										<li class="next"><a href="#">Next <span aria-hidden="true">&rarr;</span></a></li>
									</ul>
								</nav>
							</div>
						</div>	
					</div>
				</div>
			</div>
		</section>
		
		<!-- sponsor -->
		<section class="sponsor">
			<div class="container">			
				<div id="sponsor" class="carousel slide" data-ride="carousel">
					<div class="carousel-inner" role="listbox">
						<div class="item active">
							<div class="row">	
								<div class="col-sm-12">
									<ul class="list-inline text-center">
										<li><img class="" src="/TOP2/Public/index/images/1.gif" /></li>
										<li><img class="" src="/TOP2/Public/index/images/2.png" /></li>
										<li><img class="" src="/TOP2/Public/index/images/3.png" /></li>
										<li><img class="" src="/TOP2/Public/index/images/4.png" /></li>
										<li><img class="" src="/TOP2/Public/index/images/5.png" /></li>
										<li><img class="" src="/TOP2/Public/index/images/6.png" /></li>
										<li><img class="" src="/TOP2/Public/index/images/7.png" /></li>
										<li><img class="" src="/TOP2/Public/index/images/8.png" /></li>
									</ul>
								</div>
							</div>
						</div>
						<div class="item">
							<div class="row">	
								<div class="col-sm-12">
									<ul class="list-inline text-center">
										<li><img class="" src="/TOP2/Public/index/images/1.gif" /></li>
										<li><img class="" src="/TOP2/Public/index/images/2.png" /></li>
										<li><img class="" src="/TOP2/Public/index/images/3.png" /></li>
										<li><img class="" src="/TOP2/Public/index/images/4.png" /></li>
										<li><img class="" src="/TOP2/Public/index/images/5.png" /></li>
										<li><img class="" src="/TOP2/Public/index/images/6.png" /></li>
										<li><img class="" src="/TOP2/Public/index/images/7.png" /></li>
										<li><img class="" src="/TOP2/Public/index/images/8.png" /></li>
									</ul>
								</div>
							</div>
						</div>
					</div>
					<!-- Controls -->
				<a class="control-left" href="#sponsor" role="button" data-slide="prev"><i class="fa fa-angle-left"></i></a>
				<a class="control-right" href="#sponsor" role="button" data-slide="next"><i class="fa fa-angle-right"></i></a>
				</div>			
			</div>
		</section>	
		
		<!-- social icons -->
		<section class="social-icons">
			<div class="container">			
				<div class="row">	
					<div class="col-sm-12">
						<ul class="list-inline text-center">
							<li><a href="#" ><i class="fa fa-facebook"></i></a></li>
							<li><a href="#" ><i class="fa fa-spotify"></i></a></li>
							<li><a href="#" ><i class="fa fa-tumblr"></i></a></li>
							<li><a href="#" ><i class="fa fa-share-alt"></i></a></li>
							<li><a href="#" ><i class="fa fa-linkedin"></i></a></li>
							<li><a href="#" ><i class="fa fa-delicious"></i></a></li>
							<li><a href="#" ><i class="fa fa-instagram"></i></a></li>
							<li><a href="#" ><i class="fa fa-dropbox"></i></a></li>
							<li><a href="#" ><i class="fa fa-soundcloud"></i></a></li>
							<li><a href="#" ><i class="fa fa-pinterest"></i></a></li>
							<li><a href="#" ><i class="fa fa-google-plus"></i></a></li>
							<li><a href="#" ><i class="fa fa-github-alt"></i></a></li>
							<li><a href="#" ><i class="fa fa-skype"></i></a></li>
							<li><a href="#" ><i class="fa fa-stumbleupon"></i></a></li>
							<li><a href="#" ><i class="fa fa-youtube"></i></a></li>
						</ul>
					</div>
				</div>
			</div>
		</section>	
		
		<footer>
			<div class="footer-top">
				<div class="container">			
					<div class="row">	
						<div class="col-sm-3">
							<h2>About E-Market</h2>
							<div class="heading-border b-color-1"></div>
							<p>Nam apeirian assentior ei, utquo eros posse verterem. Cum eu error congue saperet. Te eam exerci vulputate consetetur, 								causae consulatu eaper,  apeirian assentior ei, utquo eros posse verterem. Cum eu error congue saperet. Te eam exerci 								vulputate consetetur, causae consulatu eaper</p>
							<div><a href="">Read More <i class="fa fa-angle-double-right"></i></a></div>
							<strong>Newsletter</strong>
							<form class="navbar-for" role="email">
								<div class="form-group">
									<input type="text" class="form-control" placeholder="Email Address">
									<span class="nav-search"><a href="#"><i class="fa fa-envelope"></i></a></span>
								</div>	
							</form>
							<small>Eros posse verterem congue saperet.</small>
						</div>
						<div class="col-sm-3">
							<h2>Featured Products</h2>
							<div class="heading-border b-color-1"></div>
							<ul class="media-list">
								<li class="media">
									<div class="media-left"><img src="/TOP2/Public/index/images/featured-1.jpg" alt=""></div>
									<div class="media-body">
										<p class="media-heading">Lorem ipsum dolor sit amet</p>
										<div class="category">
											<i class="fa fa-star"></i>
											<i class="fa fa-star"></i> 
											<i class="fa fa-star"></i> 
											<i class="fa fa-star"></i> 
											<i class="fa fa-star-o"></i>
										</div>
										<strong>$899.99</strong>
									</div>
								</li>
								<li class="media">
									<div class="media-left"><img src="/TOP2/Public/index/images/featured-1.jpg" alt=""></div>
									<div class="media-body">
										<p class="media-heading">Lorem ipsum dolor sit amet</p>
										<div class="category">
											<i class="fa fa-star"></i>
											<i class="fa fa-star"></i> 
											<i class="fa fa-star"></i> 
											<i class="fa fa-star"></i> 
											<i class="fa fa-star-o"></i>
										</div>
										<strong>$899.99</strong>
									</div>
								</li>
								<li class="media">
									<div class="media-left"><img src="/TOP2/Public/index/images/featured-1.jpg" alt=""></div>
									<div class="media-body">
										<p class="media-heading">Lorem ipsum dolor sit amet</p>
										<div class="category">
											<i class="fa fa-star"></i>
											<i class="fa fa-star"></i> 
											<i class="fa fa-star"></i> 
											<i class="fa fa-star"></i> 
											<i class="fa fa-star-o"></i>
										</div>
										<strong>$899.99</strong>
									</div>
								</li>
							</ul>
						</div>
						<div class="col-sm-3">
							<h2>Latest News</h2>
							<div class="heading-border b-color-1"></div>
							<ul class="media-list">
								<li class="media">
									<div class="media-left text-center">
										<img src="/TOP2/Public/index/images/featured-1.jpg" alt="">
										<span><i class="fa fa-search"></i></span>
									</div>
									<div class="media-body">
										<p class="f-border">Lorem ipsum dolor sit amet, an animal feugait</p>
										<p class="f-date">23 August 2015</p>
									</div>
								</li>
								<li class="media">
									<div class="media-left text-center">
										<img src="/TOP2/Public/index/images/featured-1.jpg" alt="">
										<span><i class="fa fa-search"></i></span>
									</div>
									<div class="media-body">
										<p class="f-border">Lorem ipsum dolor sit amet, an animal feugait</p>
										<p class="f-date">23 August 2015</p>
									</div>
								</li>
								<li class="media">
									<div class="media-left text-center">
										<img src="/TOP2/Public/index/images/featured-1.jpg" alt="">
										<span><i class="fa fa-search"></i></span>
									</div>
									<div class="media-body">
										<p class="f-border">Lorem ipsum dolor sit amet, an animal feugait</p>
										<p class="f-date">23 August 2015</p>
									</div>
								</li>
							</ul>
						</div>
						<div class="col-sm-3">
							<h2>Contact us</h2>
							<div class="heading-border b-color-1"></div>
							<strong class="media-heading">Address</strong>
							<p>Lebel 2, 13 Elezabe St, Melbounire, Victoria 3000, +8492575, USA</p>

							<strong class="media-heading">Phone & Fax</strong>
							<p>+880183947930</p>
							<p>+(980)1839479</p>

							<strong class="media-heading">E-Mail Address</strong>
							<p>support@gmail.com</p>
							<p>example@gmail.com</p>
						</div>
					</div>
				</div>
			</div>
			<div class="footer-bottom">
				<div class="container">		
					<div class="row">	
						<div class="col-sm-12 text-center">
							<p>Copyright 2015 made by <a href="#">Bootultra.com</a> & Disign by Shaifuddin. All Rights Reserved.</p>
							<ul class="list-inline center-block">
								<li><a href="#"><img src="/TOP2/Public/index/images/card-1.png"></a></li>
								<li><a href="#"><img src="/TOP2/Public/index/images/card-2.png"></a></li>
								<li><a href="#"><img src="/TOP2/Public/index/images/card-3.png"></a></li>
								<li><a href="#"><img src="/TOP2/Public/index/images/card-4.png"></a></li>
								<li><a href="#"><img src="/TOP2/Public/index/images/card-5.png"></a></li>
							</ul>
						</div>
					</div>
				</div>	
			</div>
		</footer>
			
        <!-- ALL JAVASCRIPT -->         
        <script src="/TOP2/Public/index/js/jquery.js"></script>
        <script src="/TOP2/Public/index/bootstrap/js/bootstrap.min.js"></script>
        <script src="/TOP2/Public/index/js/custom.js"></script>
    </body>
</html>